package com.yager.mapper;

import com.yager.model.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(String orderid);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String orderid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    String findMaxId();

    List<Order> getAllOrders();

    List<Order> getOrdersByUserId(String id);

    List<Order> getOrdersByHouseId(String id);

    int getHouseOrderCount(String houseid);

    int getUserOrderCount(String userid);

    void deleteOrderByHouseId(String houseid);

}